package com.gqz.patrol.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gqz.common.core.domain.R;
import com.gqz.common.core.domain.RequestForm;
import com.gqz.patrol.vo.EnWzSblxVo;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;


/**
 * 新能源-物资-设备类型树
 */


@RequestMapping("/en-wz-sblx")
public interface EnWzSblxApi {
    @PostMapping("/{id}")
    public R<List<EnWzSblxVo>> getById(
            @PathVariable("id") String id);

    @PostMapping("/page")
    public R<Page<EnWzSblxVo>> page(
            @RequestBody RequestForm<EnWzSblxVo> requestForm);

    @PostMapping("/count")
    public R<Long> count(
            @RequestBody RequestForm<EnWzSblxVo> requestForm);

    @PostMapping("/insert")
    public R<Integer> insert(
            @RequestBody List<EnWzSblxVo> forms);

    @PostMapping("/update")
    public R<Integer> update(
            @RequestBody List<EnWzSblxVo> forms);

    @PostMapping("/delete")
    public R<Boolean> delete(
            @RequestBody List<String> ids);

    @PostMapping("/getList")
    public R<List<EnWzSblxVo>> getList(
            @RequestBody EnWzSblxVo iEnWzSblxVo);

    @PostMapping("/getLeaf/{pid}")
    public R<List<EnWzSblxVo>> getLeaf(
            @PathVariable String pid);
}
